Home > biomechZoo > Toolbox > Biomech Ops > bmech_resample.m

bmech_resample

PURPOSE ^

BMECH_RESAMPLE(fld,ch,p,q,method) batch process resampling function without filtering

SYNOPSIS ^

function bmech_resample(fld,ch,p,q,method)

DESCRIPTION ^

 BMECH_RESAMPLE(fld,ch,p,q,method) batch process resampling function without filtering

 ARGUMENTS
  fld     ... Folder to batch process (string).
  ch      ... Channel(s) to operate on (single string or cell array of strings).
              Use 'Video' or 'Analog' to resample all video or analog channels
  p       ... Numerator of fraction of sampling rate. Default = [];
  q       ... Denominator of fraction of fraction of sampling rate. Default = []
  method  ... Interpolation method used during resampling. Default 'linear'

 NOTES:
 - If p and q are not provided, then all channels of ch type will be resampled 
   to the rate of the other type. e.g. bmech_resampe(fld,'Analog') resamples all
   Analog channels to the 'Video' sampling rate
 - If only select channels are provided from a given type (e.g. only 'Fz1'
   from 'Analog' channel list. zoosystem metainfo will provide incorrect
   information.

 See also resample_data, bmech_normalize, normalize_line

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 10-Mar-2024 22:39:06 by m2html © 2005